<?php


class JourClos extends Entity { use JourClosView;
	
	//Nom de la table
	protected static $sql_table='jour_clos';
	//Colonne utilisée comme identifiant
	protected static $sql_id='JOUR_NUMID';

	//Liste des colonnes de la table
	protected $JOUR_NUMID;
	protected $JOUR_FERME;
	
        
        
        public static function getAllInPeriode($periode){
            $debut=date('Y-m-d',$periode['debut']);
            $fin=date('Y-m-d',$periode['fin']);
            $table=self::$sql_table;
            $requete="SELECT * FROM $table WHERE JOUR_FERME between '$debut' and '$fin';";
            $retour=array();
            foreach(Database::selectList($requete) as $jourClos){
                $retour[]=$jourClos['JOUR_FERME'];
            }
            return $retour;
        }
        

}


?>